<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="typeList" item="vo"}
                <label for="row[type]-{$key}"><input id="row[type]-{$key}" name="row[type]" type="radio" value="{$key}" {in name="key" value="$row.type"}checked{/in}  disabled/> {$vo}</label> 
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:$row.create_time?datetime($row.create_time):''}">
        </div>
    </div>
    <div class="form-group" {if $row.type != 3} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('Detail_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-detail_id" data-rule="required" data-source="detail/index" class="form-control selectpage" name="row[detail_id]" type="text" value="{$row.detail_id|htmlentities}">
        </div>
    </div>
    <div class="form-group" {if $row.type != 0} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('送多少积分')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score"  class="form-control"  data-use-current="true" name="row[score]" type="num" value="{$row.score|htmlentities}">
        </div>
    </div>
    <div class="form-group" {if $row.type != 1} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('送多少水滴')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-water_num"  class="form-control"  data-use-current="true" name="row[water_num]" type="num" value="{$row.water_num|htmlentities}">
        </div>
    </div>
    <div class="form-group" {if $row.type != 2} style="display: none;" {/if}>
        <label class="control-label col-xs-12 col-sm-2">{:__('水票号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ticket_id"  data-source="ticket/index" class="form-control selectpage" data-field="title" name="row[ticket_id]" type="text" value="{$row.ticket_id|htmlentities}">
        </div>
    </div>
    <div class="form-group" >
        <label class="control-label col-xs-12 col-sm-2">{:__('中奖概率(%)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-probability"  class="form-control" name="row[probability]" type="num" value="{$row.probability|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
